<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>审核文章</title>
		<script src="js/jquery.js" type="text/javascript"></script>
		<script src="js/table.js" type="text/javascript"></script>
		<script type="text/javascript">
			function deleteArticle(){
				var result=confirm("确认删除吗？");
				return result;
			}		
		</script>
	</head>
	<body>
		<h1>
			审核${category.name}文章
		</h1>
		<form id="mainForm" action="article/manageUncheckedArticles.action" method="post">
			<input type="hidden" name="cid" id="cid" value="${cid}"/>
			<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
			<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
			<input type="hidden" name="page.order" id="order" value="${page.order}"/>
			<table class="table_items" style="width:735px;">
				<thead>
					<tr>
						<th>
							文档名称
						</th>
						<th class="td_link">
							查看
						</th>
						<th class="td_link">
							编辑
						</th>
						<th class="td_link">
							审核
						</th>
						<th class="td_link">
							删除
						</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="page.result">
						<tr>
							<td>
								${title}
							</td>
							<td>
								<a href="article/checkArticle.action?uuid=${uuid}&status=1">通过</a>/
								<a href="article/checkArticle.action?uuid=${uuid}&status=-1">不通过</a>
							</td>
							<td>
								<a href="article/viewArticle.action?uuid=${uuid}">查看</a>
							</td>
							<td>
								<a href="article/toEditArticle.action?uuid=${uuid}">编辑</a>
							</td>
							<td>
								<a href="article/deleteArticle.action?id=${id}&cid=${cid}" target="_self" onclick="return deleteArticle();">删除</a>
							</td>
						</tr>
					</s:iterator>
				</tbody>
			</table>
		</form>
		<div id="divPageController">
			共${page.totalCount}条&nbsp;&nbsp;共${page.totalPages}页&nbsp;&nbsp;第${page.pageNo}页&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="javascript:jumpPage(1)">首页</a>
			<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
			<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
			<a href="javascript:jumpPage(${page.totalPages})">末页</a>
		</div>
	</body>
</html>